﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ComGroupManager.aspx.cs"
    Inherits="PublicCommunication_ComGroupManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>

    <script type="text/javascript" src="../js/PublicCommnunication.js"></script>

        <link rel="Stylesheet" type="text/css" href="../Styles/right_style.css" />
        <script type="text/javascript" src="../Scripts/jquery.ui/js/jquery.js"></script>

        <style type="text/css">
         <!--
        html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
        scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
        -->
    </style>

</head>
<body>
    <form id="form1" runat="server">
       <div class="sub_right_top">
  <div class="hdm_footer">          
  <br />
    <table width="97%" border="1" cellpadding="0" cellspacing="0" bordercolor="#77acd0" style="border-collapse:collapse; ">
      <tr bgcolor="#b1d5ef">
        <td><span class="new_name_word">新建分组</span><span class="new_button_img">

            <asp:ImageButton ID="BtnCreateGroup" runat="server" OnClick="BtnCreateGroup_Click" OnClientClick="hidTable('crGroup'); return false;" 
                                         ImageUrl="~/images/new_all_but.gif"/>
        </span>
    </td>
      </tr>
    </table>
    <table id="crGroup" width="97%" border="1" cellpadding="0" cellspacing="0" bordercolor="#72b0d8" style="border-collapse:collapse; display:none;">
          <tr bgcolor="#b1d5ef">
            <td colspan="2" align="center">创建分组</td>
          </tr>
          
          <tr>

            <td width="160">分组名称：</td>
            <td align="left">
                <asp:TextBox ID="TxtComGroupName" runat="server" BackColor="#FFFFC0" Width="263px"></asp:TextBox>
             </td>
          </tr>
          <tr bgcolor="#b1d5ef">
            <td colspan="2"><div class="disk_queding_top">
                <asp:Button ID="BtnCreate" runat="server" OnClick="BtnCreate_Click" OnClientClick="return checkCreateGroup('TxtComGroupName')"
                                            Text="" CssClass="queding_anniu" />
            </div>
          <div class="disk_back_top">
            <input id="Button1" style="width: 73px; height: 24px" type="button" value="" class="fanhui_anniu" onclick="hidTable('crGroup')" />
          </div> 
      <div class="clear"></div>

            </td>
          </tr>
        </table>


    <div style="height:10px; overflow:hidden;"></div>   
        <asp:Repeater ID="DataList1" runat="server" OnItemDataBound="DataList1_ItemDataBound">
                             <HeaderTemplate>
                                            <table width="97%" border="1" cellpadding="0" cellspacing="0" bordercolor="#72b0d8" style="border-collapse:collapse; ">
                                                <tr bgcolor="#b1d5ef">
                                                <td align="center">
                                                    <b>分组名称</b></td>
                                                <td align="center">
                                                    <b>操作</b></td>
                                            </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr>
                                                <td style="word-break: break-all">
                                                    <asp:Label ID="LblComGroupName" runat="server" Text='<%# Eval("ComGroupName") %>'></asp:Label>
                                                    <input id="HidComGroupName" runat="server" style="width: 55px" type="hidden" />
                                                </td>
                                                <td width="300px">
                                                    <asp:Button ID="Button3" runat="server" pcg_id='<%# Eval("ComGroupId") %>' OnClick="Button3_Click"
                                                        Text="编辑" Width="67px" />
                                                    <asp:Button ID="Button4" runat="server" Height="24px" OnClick="Button4_Click" pcg_id='<%# Eval("ComGroupId") %>'
                                                        Text="删除" OnClientClick="return confirm('确定要删除此通讯组吗？')" Width="67px" />
                                                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" pcg_id='<%# Eval("ComGroupId") %>'
                                                        pcg_Name='<%# Eval("ComGroupName") %>' Text="导出Excel文件" />
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                       <FooterTemplate>
                                        </table>
                                       </FooterTemplate>
                                    </asp:Repeater>

    </div>
    <div class="clear"></div>
    <div style="height:15px; overflow:hidden;"></div>
  </div>
</div>
    </form>
</body>
</html>
